﻿using System;
using System.Collections.Generic;

namespace NetTopologySuite.Index
{
	public class ArrayListVisitor<T> : IItemVisitor<T>
	{
		public void VisitItem(T item)
		{
			this._items.Add(item);
		}

		public IList<T> Items
		{
			get
			{
				return this._items;
			}
		}

		private readonly List<T> _items = new List<T>();
	}
}
